upgread console.writeline