make sockets work