add s3 support for attachments