added support for gzip / non-gzip upload to s3