adapted to new Monitor api