ancestry.lua: cleaning the script up!