now prints hostname too. getting a weird warning though