update the index files