add amd and cmd compability