allow instream to use IO object