fixed some bugs.  now paper scripts all work.