created add_thread_resource feature