using globals defined in pdDefs.sh