optimized and modified kernal (enhanced ML monitor)