change type of task_wrapper<>