console-style stack operations fixed