some tweaks so it will work on windows