more info on spyOnModelCallback