Add windows support
Add windows support
bug fixed
Add treading