amd module code cleanup