Fix std output to new format
Fix text which is visible when debugflag is 1