reorder input.json remove some nodes from the tree input and remove some unused tree code