completes initial implementation of sockets