change in fileWatcher to take actions correspondingly