John's changes to implement cgi pmlcheck