update copy-to-remote functionality