 class ReadWriteDictionary {
 
     // Name set for schedule, configuration or config
-    private var name: String?
+    private var plistname: String?
     // key in objectForKey, e.g key for reading what
     private var key: String?
     // Which profile to read

            let profilePath = CatalogProfile()
            profilePath.createDirectory()
            self.filepath = self.configpath! + macserialnumber! + "/" + profile + "/"
            self.filename = docuDir + self.configpath! + macserialnumber! + "/" + profile + self.name!
        } else {
            // no profile
            self.filename = docuDir + self.configpath! + macserialnumber! + self.name!
            self.filepath = self.configpath! + macserialnumber! + "/"
        }
    }

        self.task = whattoreadwrite
        switch self.task! {
        case .schedule:
            self.plistname = "/scheduleRsync.plist"
            self.key = "Schedule"
        case .configuration:
            self.plistname = "/configRsync.plist"
            self.key = "Catalogs"
        case .userconfig:
            self.plistname = "/config.plist"
            self.key = "config"
        case .none:
            self.plistname = nil
        }
    }

