fixed a few https related issues