update the statistics generation to include avisid in the generated xml file