use try {} for the AMD errs