add script to monitor network connection