add copy keygen code