tweaked bb debug code for new data format