slight update for making it work even more smooth on windows
scripted update of code from master at f1a4c36 slight update for making it work even more smooth on windows