create the index file