hosts needed to be an instance attribute