handle templates in initrd