adds s3 uploading
cleans up