add debug printing.