fix api calls in previous commit