make templates work