added binding to sockets