more debug logging fixes