fixed a few things in the sockets module