add polling fun for file watcher, not test