use 5.10
tidy
added conn_max option
added wait_per_host option
implemented wait_per_host more propery
updated example