fixed to work on windows simulated environment.