added support for protocol version check as first protocol command