add gzip methods