added pcfg generator