p2g writer