updating to new index mapping api