[Fixed] adjusted to work with new search api