refactor node fetching stuff in DM
replace getNode on session by method in DM