updated the search objects API to have better search