update_file in CAS