add support for passing through s3 write options