fixed cmd printing newlines