swap it up - pull amd in to cjs code