make logging work; save time-varying results.csv