forgot to check for gzip flag