moves filter logic into list-packages