add a few new attributes to templates