this allows us to switch http/https as required, and fixes a bug with remembering default layers on IITC startup