added code to actually upload to s3