working on data tree serialization