updated api calls to httpS