adapt process-pn.R for 2010 graphs