fixed bugs in monitor.sh