refactored custom node rest module