Fixed config files now makes api calls correctly