moved backtrace to static method