connect up the sockets, etc.