updated connection settings to apply user-agent header