turn filtering logic to match ORM's. fixes #102