more progress on createPDF: ensure all publish functions always return a cursor or array, make `waitFor` work, but incorporate into method