clean up of the device tree