move mdht/constants to config