fixed sockets stuff