updated amdefine; define catches unnamed module early