got tree datastructure working! @ev