working twisty
I have created an abomination in tree.py. I deserve to be burned to death.
some light changes, so far it works