adopt changes in rime api 1.0.