changes on server.js for support socketio