add many arguments to fitter and residuals