minor tweak of searchWithAuth