mod: use macro for attach notification