fixing https issues