switching to better least squares solver, adding L2 reg for detrending