merge index file