add 'c' and 'm' keys to node serialization