changed api to v2