prepping for https support