last refactor broke socketio - this fixes