core: initial filter logic.