removed the do_task from connect dispatcher