added automatic token refresh once per hour