extract fsnotify logic into StateWatcher
configure capacity in megabytes