updated to use api v3