added more search functionalities to api