As developers always say 'it worked locally'. Did not work when I redeployed so I'mm trying again.