changed where pdf gets instantiated
updated versions