fix search and task api