sockets debugging