add ability to filter groups by their types