added scripts for aggregating data