added script to get add date and do the aggregation