use xpcall and get backtrace