debug debug mode: add flush and newline