add major improvements to stack printing