made changes to the KVMessage(Stream) constructor

let me know if these work…
old code is just commented out