change device node control api from plugin to device-node