organize and prune templates/routing