I'm not convinced the two should be combined, code is less readable here and elsewhere where namefilter/allfilters is passed