change rpcs::checkduplicate_and_update