changed to work with s3 cloud storage