fixed access control bug and began pdf output