processing scripts and global aggr