added new api and fixed search issues