probably need to remove aggregation logic from template since it makes virtualization hard