minor update to ad pack code