update search method in api and set default options