updated the directory watcher