added gzip compression on API calls