added an --all_fold option