added hostRandom option