made br_iterate_utemplates_file more robust