gem pg working