reformat console print