modified url host logic