added --log_all option in conjunction with --all_fold