add sockets to loop