Revert "Revert "edit index file""

This reverts commit 8396b308775864d77bf1d10bf609f4b2ddd363cc.