extracted mac notifier to class