add update_model_file method