add loadModel in c