hostname and url tweak