made PGLListener constructor public