updates rm and core