partial implementation of Node serialization