adding custom domain and protocol support for the client if you want to specify