serialization of Node