make an index file