add gzip option support