dht fixes

Fixing dht issues.
nit: whether