added ability to edit task on failure