add load last setting function