export save and load indexes functions