use socket.write - this might fix our sleep issue