add task dispatch to execute all tasks