fix the task api