add authority check to templates