updated addRoutes