print stack traces to out
avoid reassigning to final variables - resolves #87