make _initRoutes more versatile