change the global variables in APIClient