add protocol version in state