hosts wrapper