helper: add stacktrace command that returns error stacktrace