tree ser/deser