$rndckeypath not in scope here?