added dname and sname row-level helper subs