bugfix: calling api methods from within api methods