some slight changes in monitor.php