added ConsoleMiddleware