[ak/sd] wired up aggregate logic.