add debug output support