updated to use v1 API