added print stack trace info in exception