refactored br_iterate_utemplates_file