ancestry.lua: cleanup