add debugging to filter