support AMD wrapper