load a category with a middleware