new template name searching hierarchy