merge amd & cmd