amd and cmd