adding logs. fix the bug of thread pool-usage.