updated implementation of WinConsole