tweaks to debug log output