subtle modification of saving and loading process