work on initRoutes logic