changed endpoint v1 to v2