Fix windows path
Fix io streams