add thread and number of connections