fix fatal error when no route is active
initial work on route caching