bugfix: if use give hostname use it