now uses stacktrace