add option to study residual convergence