add streaming support for snappy