handle the abscence of "__name__" and "__package__"
recover stack when explain throws an exception