             let dataWithoutTerminator = data.subdata(in: Range(range))
             if dataWithoutTerminator == self.keepAliveHeader {
                 DLog("BluepeerObject: got keepalive")
-                self.logDelegate?.didReadWrite("readHeaderTerminator2")
+                self.logDelegate?.didReadWrite("readKeepAlive from \(peer.displayName)")
                 sock.readData(to: self.headerTerminator, withTimeout: Timeouts.header.rawValue, tag: DataTag.tag_HEADER.rawValue)
             } else {
                 // take the first 4 bytes and use them as UInt of length of data. read the next 4 bytes and discard for now, might use them as version code? in future

        } else {
            var senddata = NSData.init(data: self.keepAliveHeader) as Data
            senddata.append(self.headerTerminator)
            self.logDelegate?.didReadWrite("writeKeepAlive")
            
//            DLog("keepAlivetimer writes: \(senddata.hex)")
            

            self.dispatch_on_delegate_queue({
                self.dataDelegate?.didReceiveData(data, fromPeer: peer)
            })
            self.logDelegate?.didReadWrite("readHeaderTerminator3-receiveData")
            sock.readData(to: self.headerTerminator, withTimeout: Timeouts.header.rawValue, tag: DataTag.tag_HEADER.rawValue)
        }
    }
