added switch to turn of ssl cert validation