replaced watchdog with pyinotify