initial background support for aggregate queries