adding "save" line to save potentials just before run crf, in order to find NaN or inf.