simplifying implementation, getting rid of inotify