changed method of generating index.cdx