cleanup of index file