adjust to changed API