add retry logic to copy from