repair monitor module (was broken by circular import, use late import)