set hostname correctly