working on s3 upload procedure