grab return values from middlewares