fix formatting of console text