rename task_ptr to task_wrapper