changed host URL to be self determining in environment