add stack trace to error