added pbwriter source files v2.2