moved nokogiri before pg due to macos error