simplify the exports/amd support