added sockets and a bunch of other verification stuff