adding missing upload_to_s3 changes