migrate to inotify