win32 console mostly working