adding manually MiddlewaresTrait