scripts for plotting
watchdog working