cleanup the amd boilerplate