display stack traces with exceptions
pull this out of the loop