made a temp copy of file_list to ensure we don't manipulate the live list