fix lost variable
add clear expired class method