adjust Model load logic to fit params of M() function