fixing handle-sockets