add discovery debug puts back in