potential improvement for error stacktraces