still rely on inotify to monitor directory, smarter method should be applied later