fixed domain name call

fixed domain name call
added exception check