as per Mr. Porter, adding a flag to enable secure mode instead of assuming port 443