add backtrace support function (unfinished)