#779 - make stack-trace depth a configurable value