Russell/bttf tg  WIP

initial changes for `template_group`