** wrap for amd and exports