amdefine instead of UMD for mod compatibility