improve filter for patches: don't show irrelevant patches