slight update for making it work even more smooth on windows