added code to upload to AWS S3