make format MaxDepth and UseStringerInterface configurable