added auto saving to folds