add a swift-based copy.