implemented show_diz config option, added stats to the global template tags