bugfix: correct API calls