added hkxcmd copy function