plug stubs on api calls