copy macauthorization code from core
module skeleton