added token refresh handler