use thread_id and set it when in request