adds XML serialization