fixes for socketio