move this to node dao so it can be called from multiple locations, see PLFM-1723