scaffolding bugfixes, properly injecting resolved routes