added device id to more modules, got the node change algorithm working.