updates to sockets and stuff