added ability to pass extra parameters in the filter