adapt to windows env