changed DHTPeer to an interface