fixes #91: add amd support through --amd flag