july 9 corrections to PM_deleteAccess and keypair_helper