 
     if args.count == 2 { return }
 
-    if args[2] > DisplayInfo.MAX_SCALE {
+    if args[2] > DisplayUserSetting.MAX_SCALE {
       height = args[2]
       if args.count > 3 { scale = args[3] }
     }

    //omitting `self.` prefix
    mode = CGDisplayCopyDisplayMode(displayID)!
    modeID = mode.ioDisplayModeID
    
    let option = [kCGDisplayShowDuplicateLowResolutionModes:kCFBooleanTrue] as CFDictionary?
    let modes = (CGDisplayCopyAllDisplayModes(displayID, option) as! [CGDisplayMode])
        .filter { $0.isUsableForDesktopGUI() }
    
    let modeIndex = modes.firstIndex(of: mode)!
     
    if let modesObject = CGDisplayModeFromJSON.decode(from: modes) {
      // group modes by `scale, width, height` and then carefully winnow out improper modes in each group            
      let category = Array(0..<modesObject.count).reduce(into:[:]) { (category: inout [CGDisplayModeFromJSON:[Int]], i) in
          category[modesObject[i], default: []].append(i)
      }
      
      let cursor = modesObject[modeIndex]
      
      var shortlist = [Int]()
      // key is only used to identify current mode setting
      for (key, arr) in category {
          var sieve = Sieve.init()

          sieve.loop(in: modesObject, range: arr)

          var bestMode = sieve["bestMode"]
          if key == cursor && !bestMode.contains(modeIndex) { bestMode.append(modeIndex) }
          shortlist += bestMode
      } // end of highly abstracted max
                  
      self.displayInfo = shortlist.map { DisplayInfo(displayID: displayID, modeFromJSON: modesObject[$0], mode: modes[$0]) }.sorted()
    } else {
      self.displayInfo = []
    }
  }
  
  private func _format(_ di:DisplayInfo, leadingString:String, trailingString:String) -> String {

      modeID:Int32,
      mode: CGDisplayMode

  /*struct ModesForDisplay {
    let displayID:CGDirectDisplayID,
        modesObject:[CGDisplayModeFromJSON],
        modeIndex:Int

    init(_ displayID:CGDirectDisplayID, modesFromJSON:[CGDisplayModeFromJSON], currentModeIndex:Int) {
      self.displayID = displayID
      self.modesObject = modesFromJSON
      self.modeIndex = currentModeIndex
    }

    func getRefreshRate(for modeFromJSON:CGDisplayModeFromJSON) -> Int {
      var frequency = modeFromJSON["frequency"]
      if frequency == 0 {
        var link:CVDisplayLink?
        CVDisplayLinkCreateWithCGDisplay(displayID, &link)
        
        let time = CVDisplayLinkGetNominalOutputVideoRefreshPeriod(link!)
        // timeValue is in fact already in Int64
        let timeScale = Int64(time.timeScale) + time.timeValue / 2
        
        frequency = Int( timeScale / time.timeValue )
      }
      return frequency
    }
  }*/

  init(_ displayID:CGDirectDisplayID) {
    self.displayID = displayID
    
