cleaning up session variables

enhancing pdf capabilities