filterMethod can also be a direct callback