adds PersistedTree to build output
separates PersistedTree.read() method from constructor