update some debugging logic, tried new ring buffer position counter then
rolled it back because it was too complex.