another attempt to work around the pg gem