oops, remove old-style duplicate check from replace, _check_duplicate was already...