adjustments to allow use with https