maybe set up sockets correctly?