add dofit for the old version and new dofitm version (sweep_estm,kfitm,dofitm,model)