fixes for pgbouncer