support gzip compression in stream module