redo the debug printing so that its less garbled.