sockets now working