added stacktrace option