added method to refresh token