working on monitor.sh