MOD: refactor mi.task
MOD:  refactor and add CallbackTask.