some lifo fixes for shell