finally got socket.io to work properly