adding audit_flags to templates