need to fix issue with how sockets are being created