adding connecttrends guard logic