return cached templates correctly