ancestry.lua: abort after 300 tries