changing persistence mode