move the host_id up in the call hierarchy for a clearer design