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

add support for amd module
someone obviously forgot to merge an important change