add thread pinning