add logic to pick client id based on domain name