update monitor script