finally making headway with sockets