sockets programming almost done