added logic to buildFilter() for enabled groups, needs duplicate check