add last_task_id define