setup index files