updated task parsing