adding and backing up the index file