reorganizing tree controller and adding full-auto protocol
merging conflicts