copy command

tidied up copy command