imporve check_file_change