updates to monitor script