streamline PBF parsing code