fix paste errors; update pm_common.py