Working PTrees, todo serialization