bugfix: `mainArchive` is expected to be an instance of S3File