added a PPCallbacks class