added a flag to optionally enable/disable PURL creation