fixed global hosts, then assign to empty array