I don't understand this code: it seems to call BOTH the v1 and v2 APIs.  delete this line of code?