fixed KVMessage to correctly parse from inputstream(case sensitivity)