deep copy
avoid redundant checks on uploading index files