we need to serialize a keypair of Maps.