better https support