Temporary kluge to fix psxy and pswiggle while we work out what is going wrong with the API