use MiddlewareNotUsed to unregister when disabled