extract server host constant
clean code