fix usages of deprecated APIs