TCPServer almost done

needs debugging