support for basic filtering, add test for simplest case