uploading to s3 correctly