todo copy_to_file