aggregate script