added Command.copy method