renamed and made public stack trace printing function