using cached templates