updating to v2 of api