updated with api v3 style api call