minor reformat of pid writing