adding and removing sockets