allowing arrays for api calls