implement the file modification catching process.