Fix for https
minor tweaks