save index on umount