clear_expired added