minor fixes and improvements to Dnum