renamed TaskAction() to AddTaskHook()