Adds missing loadMiddleware handler