add the replace_thing! APIs