miscellaneous +/- (commands, dht, net)

a shared branch of innocuous miscellaneous fixes. Feel free to push. ~~Will be rebased after Dec 1, 01:00 UTC and merged.~~
this gets hard to read. i think the old way -- even if it allocates a variable -- is more readable. the compiler should optimize this anyway