add basic read and write support to the underlying stream

add the ability to read and write to the server