adjustments for https