changed to pg in local mode