- added errorHandling for PGZ