fix hostname and domain establishing stuff