upgrade console.writeline