remove add_task_wrapper() from pool_core, place its functionality into add_task