updated the wifimonitor script