DHT PR

This PR will be for CR and conversation on the DHT.
I dont know yet if the large switch works (with all the possible error cases). Need to think about the error cases more. maybe let's make sure testing covers many of those edge cases