fix add_file