update load model logic