finish kademlia and core dht logic