add support for both filter and path #9