add history_expire field to structure