fixing #36 https issues