automated build and separation of optional amd modules