lifo debug and reset