continued working on streams and buffered socket