updates to spatial lags code