patch to make changes work with socketio