prevent too many file input stream open at directory watcher