add debug stmt
do not use reg command with xml command