fix errors in string parsing from buffer
move read/write-buffer into connection ns
whitespacw
initial client send contains two requests
minor rearrangement