use captureStackTrace
Merge pull request #2 from landau/master

use captureStackTrace