refactoring, FEATURE: possibility to add and remove threads dynamically