slight refactoring of the in-progress DHT