implement tree-filtering for clientFilter