added stack trace to output