before socket.io changes