cointegration seems to be working but needs cleanup