fix rr deprecation warnings
Merge pull request #771 from mockdeep/rr_deprecate

fix rr deprecation warnings