still trying to fix amazon s3 upload