if (tokens[idx].meta.subId > 0) {
    refid += ':' + tokens[idx].meta.subId;
  }