juggling with sockets