setting up sockets