add gzip decrompression in tail