modify the monitor api