using service to persist token