initial file watcher code