servers and hosts logic--done