appdefaultpghandler now extends the new basepghandler