better registration of module in AMD