clone from MageMonitoringExt