table2: added ability to write custom filters