change scope of update_filenames
change scope of find_or_default