added global template tweaks