made console to build on windows, reader is returning 1, start to debug