fixing s3 direct upload