clean fix for sending number of hosts