connection pools for thread safety