fixes to routing, links, and caching