api calls are anonymous functions now