moves live edge search logic into rules