model: use get_thread() helper