serialize with tree root within
pristine data also with root