added gzip support to streaming query interface