Revert "Revert "added printStackTrace()""

This reverts commit 433269f75c50eb07af8d986c4e2e84865e0fc4bc.