updated add_files to addFiles