initial cut at a working version of the new search with sharing support