sockets and sync