changed casing
updated gemfil
trying a tmp file store for pdf
removed sub
clean up