fixing s3 upload