added file update checking