complete basic search functionality