add instream close