fixed to work on windows for reals