updates rm with new api