add support for amd module
Merge pull request #2 from normanzb/feature/amd

add support for amd module