listUnits now parses the state too