switch to abstracted API class using