migrate to socketio and lodash