preparing to use thread pooling