bugfix: iterate number of needed items
add recursive aggregation

very quick implementation of a recursive aggregation of the most basic
items