copy cname to output