code cosmetics (2)
code cosmetics (3)
limit number of threads for client prepared