Fixes #2 and spit pgl script to handle updates