adapt to API change in rmisc