add method to set the host endpoint for different data centers