add OSHandling for win version