replaced getStackTrace