support amd and cmd