implemented the sockets

I put hte socket stuff in there but I'm checking it in so that brett
can help debug