adding persistence to search