refactored some of kademlia.go into helpers.go