PAHMA-979: grrr...pahma media can have blanks in them. need to quote these in the script