add task callback to options