new debug with Jinja2
make logging more consistent