more debug printer simplification