switch to APIv3 from deprecated v2.1