added debug to view searches