wrap in AMD define conditionally