save & load ref model