remove ratio code, moved in distribute_hosts