added watchdog for monitoring folder