switchd to pg