add config mode for amd or cmd