did you test this? i don't think the syntax is actually quite right - (think aggregate returns a dict or someting)