add gzip to endpoint