change to "var purl" to avoid being global