fixed stack parsing bug & added stack display in console for ERROR and FATAL