working on socket.io stuff