stop using sockets