fix io-wrapper using option class