add some tricks for Windows