improved stacktrace in callbacks mode