add 'tree serialization'