simulate api calls