setting up for api calls