fixes to pg::pagacke