this is how it turned out, but now I never get any results, although in the debugger the program is reaching the correct filter based on the correct toggle and knows when a toggle is active or not and oly checks against the appropriate predicate
https://pastebin.com/mPuWzSGQ