global template tweaks