created addon macro with after init hook for code within when addon is enabled