allow boolean to be passed to pfilter