changing calls to https