fix io on windows