switch to https for all mema connections