add method for replacing the persisted Token