fix to allow upload to s3/azure