replace inotify with fsnotify