deals with multiple api calls