combining templates and plans