fixing upload_to_s3