changes before switching to pg