add stream support to Inflate