                     return false
                 }) {} else {
                     var record = self.logrecordssnapshot?[0]
-                    record?.snapshotCatalog = self.snapshotcatalogs?[i]
+                    record?.snapshotCatalog = self.catalogsanddates?[i].0
                     record?.period = "... not yet tagged ..."
                     record?.resultExecuted = "... no log ..."
                     record?.days = ""
                     record?.seconds = 0
-                    // record?.dateExecuted = Date().long_localized_string_from_date()
-                    record?.dateExecuted = self.datessnapshotcatalogstodelete?[i].long_localized_string_from_date() ?? Date().long_localized_string_from_date()
+                    record?.dateExecuted = self.catalogsanddates?[i].1.long_localized_string_from_date() ?? Date().long_localized_string_from_date()
                     if let record = record {
                         adjustedlogrecords.append(record)
                     }

    private func prepareremotesnapshotcatalogs() {
        _ = self.outputprocess?.trimoutput(trim: .two)
        guard outputprocess?.error == false else { return }
        self.snapshotcatalogs = self.outputprocess?.trimoutput(trim: .one)
        if let dates = self.outputprocess?.trimoutput(trim: .four) {
            let dateformatter = DateFormatter()
            if dates.count > 0 {
                dateformatter.dateFormat = "YYYY/mm/dd"
                self.datessnapshotcatalogstodelete = [Date]()
                for i in 0 ..< dates.count {
                    if let dates = dateformatter.date(from: dates[i]) {
                        self.datessnapshotcatalogstodelete?.append(dates)
                    }
                }
            }
        }
        // sort dates catalogs
        if self.snapshotcatalogs?.count == self.datessnapshotcatalogstodelete?.count {
            self.datessnapshotcatalogstodelete = self.datessnapshotcatalogstodelete?.sorted { date1, date2 in
                if date1 > date2 {
                    return true
                } else {
                    return false
                }
            }
        }
        // Sort catalags
        self.snapshotcatalogs = self.snapshotcatalogs?.sorted { cat1, cat2 -> Bool in
            let nr1 = Int(cat1.dropFirst(2)) ?? 0
            let nr2 = Int(cat2.dropFirst(2)) ?? 0
            if nr1 > nr2 {
                return true
            } else {

    var logrecordssnapshot: [Logrecordsschedules]?
    var config: Configuration?
    var outputprocess: OutputProcess?
    var snapshotcatalogstodelete: [String]?

    typealias Catalogsanddates = (String, Date)
    var catalogsanddates: [Catalogsanddates]?

    private func getremotecataloginfo() {
        self.outputprocess = OutputProcess()
