bug fixes to ::dn