rename thread_count2 into thread_count_frame
rename thread_ctx2 into thread_ctx_frame