switch device tree