wait for prettyPrint to load, before running