fix for https support