add user preferences persistence.