figured out the socket bug