integrity check should now go through the list of replaces[]