fixing the S3 file storage