[Ernesto-Mercy] moving encoding of families