         if self.browsing == false {
             return
         }
-        if self.sanitizedDisplayName == service.name {
+        if self.displayNameSanitized == service.name {
             DLog("BluepeerObject: found my own published service, ignoring...")
             return
         }

    }
    
    // if queue isn't given, main queue is used
    public init(serviceType: String, displayName:String?, queue:DispatchQueue?, serverPort: UInt16, overBluetoothOnly:Bool, bluetoothBlock: ((_ bluetoothState: BluetoothState)->Void)?) { // serviceType must be 1-15 chars, only a-z0-9 and hyphen, eg "xd-blueprint"
        self.serverPort = serverPort
        self.serviceType = "_" + serviceType + "._tcp"
        self.bluetoothOnly = overBluetoothOnly
        self.delegateQueue = queue
        
        super.init()

        if let name = displayName {
            self.displayName = name.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines)
        }

        if let bundleVersionString = Bundle.main.infoDictionary?["CFBundleVersion"] as? String {
            versionString = bundleVersionString

                return
            }
            newSocket.delegate = self
            let newPeer = BPPeer.init()
            newPeer.state = .awaitingAuth
            newPeer.role = .client
            newPeer.socket = newSocket
            self.peers.append(newPeer) // always add as a new peer, even if it already exists. This might result in a dupe if we are browsing and advertising for same service. The original will get removed on receiving the name of other device, if it matches
            DLog("BluepeerObject: accepting new connection from \(connectedHost). Peers.count after adding: \(self.peers.count)")
            
            // CONVENTION: CLIENT sends SERVER 32 bytes of its name -- UTF-8 string
            self.logDelegate?.didReadWrite("readName")
