added stacktrace to errors