use copySync for copy