added basic stack trace support - not tested