trying to fix up sockets