set hostname properly