update template.class, config and templates to make space for new templating strategy