changes to support local https