add getRoutes method