update plugin to support gzip compression