refactored working tree to not hold mutable stored node, and flat node as long as it is new.