properly assign host names