remote copy system integrated
adding addRemote, fixing calloc....