use non-deprecated API in README