Path filtering