various stuff, merging templates