simple code for generating name_id lookup got PhiS XML gen