debugging sockets