setting up api calls