try to understand why scanner is null on windows