enable optimizations
added dns support with multiple results
use a random broker to connect to