added automatic app discovery to search app