new replace support for copy