abstract pinfo patch to new file
abstract pinfo patch to new file