debugging and ClientID cache added.