add file watcher code