introducing flat aggregator, renaming 'apply' to 'nested'