improve convergence script