dht implementation improvements