refactor for amd support & return a literal map