added extraRoutes option