Updates for version2 of the api