changed network send thread to use BufferedOutputStream