move persist to settings