changed hostname to an array