add exception handling for PREFIX_KEYS in client protocol