use inotify, make it a global mode that can be turned off/on