added updateTaskHack