mapRoutes() should be static